package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者
 * @since 2024-02-18
 */
@Getter
@Setter
@TableName("app_fund_v2_info")
@ApiModel(value = "AppFundV2Info对象", description = "")
public class AppFundV2Info extends Model<AppFundV2Info> {

    private static final long serialVersionUID = 1L;

  /*  @TableId(value = "id", type = IdType.AUTO)
    private Integer id;*/

    @TableId(value = "user_id", type = IdType.INPUT)
    private Integer userId;

    @ApiModelProperty("发行金额")
    @TableField("fund")
    private BigDecimal fund;

    @ApiModelProperty("留存金额")
    @TableField("retained")
    private BigDecimal retained;

    @ApiModelProperty("已获得奖励")
    @TableField("get_reward")
    private BigDecimal getReward;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("give")
    private BigDecimal give;


    @Override
    public Serializable pkVal() {
        return this.userId;
    }

}
